package tankwar;

import java.awt.Graphics;
import java.awt.Rectangle;

public abstract class Tank extends GameObject  {

	//尺寸
	public int width=40;
	public int height=50;
	//速度
	private int speed=3;
	//方向
	private Direction direction=Direction.UP;
	//四个方向的图片
	private String upImg;
	private String leftImg;
	private String rightImg;
	private String downImg;
	public Tank(String img,int x,int y,Panel gamePanel,String upImg,String leftImg,
			String rightImg,String downimg) {
		super(img,x,y,gamePanel);
		this.upImg=upImg;
		this.leftImg=leftImg;
		this.rightImg=rightImg;
		this.downImg=downimg;
	}
	@Override
	public abstract void paintSelf(Graphics g);
	@Override
	public abstract Rectangle getRec();
	
}
